
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>产品退仓</title>
	<link href="../../rs/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
	<link href="../../rs/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
	<link href="../../rs/plugins/bootstrap_tab/css/bootstrap-table.css" rel="stylesheet">
	<link href="../../rs/css/animate.min.css" rel="stylesheet">
	<link href="../../rs/css/style.min862f.css?v=4.1.0" rel="stylesheet">
	<link href="../../rs/plugins/datapicker/datepicker3.css" rel="stylesheet">
	<link href="../../rs/plugins/bootstrap-editable/css/bootstrap-editable.css" rel="stylesheet">
  <?php
    require_once('login.php');
   ?>
  <style>
         #toolbar1 {
             padding: 0px 15px;
             float: right;
         }
         .btn-group-sm > .btn, .btn-sm {
             padding: 5px 12px;
         }

         .editable-click, a.editable-click, a.editable-click:hover {
             border-bottom: 0px;
         }
         .fixed-table-pagination .page-list{
             display: none;
         }
     </style>


</head>

<body class="gray-bg">
  <div class="wrapper wrapper-content animated fadeInRight">
      <div class="ibox float-e-margins">
          <div class="ibox-content">
              <div class="row">
                  <div>
                      <div class="col-sm-4">
                         <div class="input-group ">
                                    <span class="input-group-btn">
                                        <button style="height:34px;background-color: #FFF;border: 1px solid #e5e6e7;font-size: 14px;margin-left:-1px" type="button" class="btn btn-sm ">仓库</button>
                                    </span>
                            <select class="form-control" id="m_ck">
                            </select>
                        </div>
                     </div>
                      <div class="col-sm-4 m-b-xs" style="float: right;">
                          <div class="input-group">
                            <div class="input-group-btn">
                                
                                <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
                            </div>
                              <input type="text" class="form-control" id="searchtxt" onkeydown="_key()">
                              <div class="input-group-btn">
                                  <button style="height:34px" type="button" class="btn btn-white dropdown-toggle" onclick="open_modal()">
                                      搜索
                                  </button>
                              </div>
                          </div>
                      </div>
                  </div>
              </div>
              <table id="table"></table>
              <!-- End Example Card View -->
          </div>
      </div>
  </div>

<script src="../../rs/js/jquery.min.js"></script>
<script src="../../rs/js/bootstrap.js"></script>
<script src="../../rs/plugins/bootstrap_tab/js/bootstrap-table.min.js"></script>
<script src="../../rs/plugins/bootstrap_tab/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="../../rs/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="../../rs/js/jquery.cookie.js"></script>
<script src="../../rs/js/common_qj.js"></script>
<script src="../../rs/plugins/layer/layer.min.js"></script>
<script src="../../rs/plugins/bootstrap-editable/js/bootstrap-editable.js"></script>
<script src="../../rs/plugins/bootstrap-editable/js/bootstrap-table-editable.min.js"></script>
<script type="text/javascript">
     var $table = $('#table');
     var sign = URLencode($.cookie('sign'));
     $(function () {
         $('#table').bootstrapTable({
					 columns: [
 							{
 									field: 'state',
 									checkbox: true
 							},
 							{
 									field: 'prid',
 									title: '产品编号',
 									width:'200px',
 									align: 'left'
 							},
 							{
 									field: 'prmc',
 									align: 'left',
 									width:'300px',
 									title: '产品名称'
 							},
 							{
 									field: 'dj',
 									align: 'center',
 									title: '单价',
 									editable: true,
 									width:'100px',
 							},
 							 
 							{
 									field: 'sl',
 									align: 'right',
 									title: '数量',
 									width:'100px',
 									editable: true
 							},
 							{
 									field: 'bz',
 									align: 'center',
 									title: '备注',
 									editable: true
 							}
 					],
                    advancedSearch: true,
                    idTable: "advancedTable",
                    shadeClose: true,
                    toggle: "table",
                });
                f_sheard();
                });
 

//获取仓库 
     function f_sheard() {
         layer.load(2);
         //给仓库做循环
         $.ajax({
             type: "post",
             url:G_url+'sysg/see',
             data: 'sign=' + sign,
             dataType: "json",
             success: function (result) {
                 layer.closeAll('loading');
                 var ff = result.data;
                 var html1 = '';
                 $.each(ff, function (a, b) {//直接取出json的prolist做each循环.
                     html1 += "<option value='" + b.ShopGroupID + "'>" + b.ShopGroupName + "</option>";//拼接字符串.
                 });
                 $("#m_ck").append(html1);
                 //$("#mdbh1").append(html1);
             },
             error: function (XMLHttpRequest, textStatus, errorThrown) {
             }
         }); 
     }



 </script>
</body>
</html>
